package com.wenwu.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wenwu.common.bean.RelicsWork;
import com.wenwu.common.bean.RelicsWorkExample;
import com.wenwu.common.page.PaginationVO;

public interface RelicsWorkMapper extends Dao{
    int countByExample(RelicsWorkExample example);

    int deleteByExample(RelicsWorkExample example);

    int deleteByPrimaryKey(Integer workId);

    int insert(RelicsWork record);

    int insertSelective(RelicsWork record);

    List<RelicsWork> selectByExample(RelicsWorkExample example);

    RelicsWork selectByPrimaryKey(Integer workId);

    int updateByExampleSelective(@Param("record") RelicsWork record, @Param("example") RelicsWorkExample example);

    int updateByExample(@Param("record") RelicsWork record, @Param("example") RelicsWorkExample example);

    int updateByPrimaryKeySelective(RelicsWork record);

    int updateByPrimaryKey(RelicsWork record);
    
    /**
     * 分页条件查询
     * @param relicsWork
     * @param pageVo
     * @return
     */
    List<RelicsWork> selectListByPage(@Param("relicsWork") RelicsWork relicsWork,@Param("pageVo") PaginationVO pageVo);
    
    /**
	 * 分页查询的所有结果总数量
	 * @param relicsWork
	 * @param pageVo
	 * @return
	 */
	int selectTotalRecord(@Param("relicsWork")RelicsWork relicsWork);

	/**
	 * 根据主键批量删除数据
	 * @param keyList
	 * @return
	 */
	int deleteInfoByKey(List<String> keyList);
	
	/**
	 * 将SomeId字段值在keyList中存在的数据设置为null
	 * @param keyList
	 * @param SomeId 
	 * @return
	 */
	int clearBySomeId(@Param("list")List<String> keyList,@Param("SomeId") String SomeId);
}